<?php echo $head; ?>		
</head>
<body>
	<div class="wrapper_main">
		<?php echo $header; ?>
		<div class="wrapper_content">
			<?php echo $left; ?>
			<div class="primary" <?php if(!empty($msg)) : ?>  id="frm" <?php endif; ?>>
				<div class="navigator">
					<a href="<?php echo base; ?>"><?php echo $lang["navi"]["home"]; ?></a>
					<a><?php echo $lang["navi"]["contact"] ?></a>						
				</div>
				<div class="clear"></div>
				<div class="content">
					<div class="contact">
						<h1><?php echo $shopName; ?></h1>
						<p><span><?php echo $lang["contact"]["address"]; ?>: </span><?php echo $shopAddress; ?></p>
						<p><span><?php echo $lang["contact"]["tel"]; ?>: </span><?php echo $shopTel; ?></p>
                        <p><span><?php echo $lang["contact"]["fax"]; ?>: </span><?php echo $shopFax; ?></p>
                        <p><span><?php echo $lang["contact"]["email"]; ?>: </span><a href="mailto:<?php echo $shopEmail; ?>?Subject=<?php echo $lang["contact"]["email_hello"]; ?>"><?php echo $shopEmail; ?></a></p>
						<p><span><?php echo $lang["contact"]["website"]; ?>:</span> <?php echo $website; ?></p>
						
						<div class="map"><img src="<?php echo base; ?>images/map.jpg" width="400" height="300" /></div>
						<div class="clear"></div>
                        <?php if(!empty($msg)) : ?>                       
						<br />
                        <div class="required" style="margin-left:10px;"><?php echo $msg; ?></div>
                        <?php else: ?>
						<div class="contact_form">
							<form id="frm" action="<?php echo $curr_link; ?>#frm" method="POST">
								<label><?php echo $lang["contact"]["name"]; ?><span class="required">*</span> :</label><input type="text" name="name" value="<?php echo $name; ?>" />
                                <?php echo $errormsg_name; ?>
								<div class="clear_left"></div>
								<label><?php echo $lang["contact"]["email"]; ?><span class="required">*</span> :</label><input type="text" name="email" value="<?php echo $email; ?>" />
                                <?php echo $errormsg_email; ?>
                                <div class="clear_left"></div>
								<label><?php echo $lang["contact"]["tel"]; ?>:</label><input type="text" name="tel" value="<?php echo $tel; ?>" />
								<div class="clear_left"></div>
								<label><?php echo $lang["contact"]["address"]; ?>: </label><input type="text" name="address"  value="<?php echo $address; ?>" />
								<div class="clear_left"></div>
								<label><?php echo $lang["contact"]["content"]; ?><span class="required">*</span> :</label><textarea name="content"><?php echo $content; ?></textarea>
                                <?php echo $errormsg_content; ?>
								<div class="clear_left"></div>
								<input name="capcha" class="capcha" type="text" maxlength="5"  value="<?php if(!empty($text_cap)) echo $text_cap; else echo $lang["general"]["input_captcha"]; ?>" onBlur="if(this.value=='') this.value='<?php echo $lang["general"]["input_captcha"]; ?>';" onFocus="if(this.value=='<?php echo $lang["general"]["input_captcha"]; ?>') this.value='';">
                                <img id="id_img" src="<?php echo $homepage; ?>common/captcha/getCap.php?text_cap=<?php echo $text_cap; ?>" width="93" height="26" />
                                <a href="javascript:void(0);" onClick="changecapcha('id_img');" class="mamoi"><?php echo $lang["general"]["new_captcha"]; ?></a>
                                <?php echo $errormsg_captcha; ?>
								<div class="clear_left"></div> 
								<input type="reset" value="<?php echo $lang["general"]["reset"]; ?>" class="input_reset" />
								<input type="submit" value="<?php echo $lang["general"]["send"]; ?>" class="input_submit" />
								<div class="clear_left"></div>
							</form>
						</div>	
                        <?php endif; ?>				
					<div class="clear"></div>
				</div><!-- STOP contact -->
				</div><!--end .content-->
			</div><!--end .primary-->	
			<div class="clear"></div>	
		</div><!--end .wrapper_content-->
		<?php echo $footer; ?>	
	</div><!--end .wrapper_main-->
</body>
</html>
<script type="text/javascript">
function changecapcha(id_img)
{
	var img = document.getElementById(id_img);
	img.src = "<?php echo base; ?>common/captcha/getCap.php?" + Math.random();
}
</script>
